import math

class Point:
    x = 0
    y = 0
    angle = 0
    velocity_x = 0
    velocity_y = 0
    image = None

    def __init__( self, x = 0, y = 0, velocity = 0, angle = 0 ):
        self.y = y
        self.x = x
        self.velocity = velocity
        self.angle = angle

    def rotate_left ( self ):
        self.angle = self.angle + 1

    def rotate_right ( self ):
        self.angle = self.angle - 1

    def speed_up ( self ):
        self.velocity_x = self.velocity_x + math.cos( self.angle * math.pi / 180 ) / 60
        self.velocity_y = self.velocity_y - math.sin( self.angle * math.pi / 180 ) / 60

    def speed_down( self ):
        self.velocity_x = self.velocity_x - math.cos( self.angle * math.pi / 180 ) / 60
        self.velocity_y = self.velocity_y + math.sin( self.angle * math.pi / 180 ) / 60

    def move( self ):
        self.x = self.x + self.velocity_x
        self.y = self.y + self.velocity_y